//
//  OrderDetailsModel.h
//  CloudTest
//
//  Created by 张帅 on 2020/7/24.
//  Copyright © 2020 张帅. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
// 相册展示内容的类型
typedef NS_ENUM(NSUInteger, HistoyDetailsCellShowType) {
    Cell_Show_SignUp_info_type,                              //报名信息信息
    Cell_Show_Personal_infog_type,                          // 个人信息
    Cell_show_Order_info_type,                              // 订单信息
    Cell_show_not_pay_Order_info_type,                      //未支付订单信息
    Cell_show_Test_results_type,                            // 考试结果
    Cell_show_Video_type,                                   // 视频
    Cell_show_Video_upload_type,                            // 视频上传
    Cell_show_refund_type,                                  //退款进度
};
@interface OrderDetailsModel : NSObject
#pragma mark 本地使用
@property(nonatomic,assign)HistoyDetailsCellShowType showType;
@property(nonatomic,strong)NSMutableArray * titles;
@property(nonatomic,strong)NSMutableArray * contents;
@property(nonatomic,assign)CGFloat cellHeight;



//订单id
@property(nonatomic,strong)NSString *  orderNo;// = OrderNo202007241715060010;
@property(nonatomic,strong)NSString *  orderId;// = 1286590723038310402;

@property(nonatomic,strong)NSString *  orderStatusStr ;//= "<null>";
@property(nonatomic,strong)NSString *  resultStr ;//= "<null>";
//曲目列表 DetailsSongModel
@property(nonatomic,strong)NSArray *   reviewVos;


#pragma mark 考级委员会信息
@property(nonatomic,strong)NSString *  money;// = "0.2";
//订单创建时间
@property(nonatomic,strong)NSString *  orderCreateDate ;//= "2020-07-24T09:15:07.000+0000";
//订单状态
@property(nonatomic,strong)NSString *  orderStatus;// = 1;


//考级委员会 头像
@property(nonatomic,strong)NSString *  icon;// https://hao1.qhimg.com/t01ebd7417e025c5ef4.jpg;


#pragma mark 考生信息
///考生生日
@property(nonatomic,strong)NSString * birthday;// = "2020-04-13";
///考生头像url
@property(nonatomic,strong)NSString * pictureUrl;
///考生姓名
@property(nonatomic,strong)NSString * name ;//= "\U5f20\U8001\U5e08";
///考生性别
@property(nonatomic,strong)NSString * gender ;//= 0;0= 男 1=女
//国籍
@property(nonatomic,strong)NSString * nationality;
///考生身份证号
@property(nonatomic,strong)NSString * idCard;//
///护照
@property(nonatomic,strong)NSString * passport;
///考生民族
@property(nonatomic,strong)NSString * nation ;//= "\U6c49\U65cf";
//考生手机号
@property(nonatomic,strong)NSString * phone;


#pragma mark 考试信息
///考级码
@property(nonatomic,strong)NSString * referralCode ;//= 666666;
///委员会名称
@property(nonatomic,strong)NSString * committeeName ;//= "测试委员会MK1
///项目名称 和 等级
@property(nonatomic,strong)NSString * orderTitle;// \U5f20\U4e09\U4e30(\U4e00)";
///证书url 考生上传的证书 一级以上的证书
@property(nonatomic,strong)NSString * certificatePicUrl ;//= "www.baidu.com";

//考试合格后的 电子证书
@property(nonatomic,strong)NSString * certificateUrl;

#pragma mark 考试结果
///支付时间
@property(nonatomic,strong)NSString *  payDate;//
///支付类型
@property(nonatomic,strong)NSString *  payType ;//= "<null>";
///考试评分等级
@property(nonatomic,strong)NSString *  result;// = "<null>";


#pragma mark 评委相关字段
///评语
@property(nonatomic,strong)NSString * reviews;
///评委头像
@property(nonatomic,strong)NSString * teacherIcon;
///评委名字
@property(nonatomic,strong)NSString * teacherName;
///评委资质编号
@property(nonatomic,strong)NSString * qualificationCode;

#pragma mark 退款数组
@property(nonatomic,strong)NSArray * tbOrderRefunds;


- (UIColor *)get_text_color ;

//cell 显示类型标题
- (NSString *)getCellTypeStr;

#pragma mark 详情界面 是否显示 底部 view
- (BOOL)is_show_bottom_view;

//获取 底部view 显示类型  ： 待支付 ，视频录制，视频上传 ,邮寄证书
- (NSString *)get_bottm_type_str;

#pragma mark 是否显示订单倒计时
- (BOOL)is_show_order_countdown;

#pragma mark 获取订单倒计时时间
- (NSString *)get_order_countdown_dateStr;

-(OrderDetailsModel*)getShowModelType:(HistoyDetailsCellShowType)type;

/// 获取订单详情
/// @param orderId 订单号
/// @param successBlock successBlock
/// @param errorBlock errorBlock
+ (void)get_order_details_model_orderId:(NSString *)orderId success:(ObjSuccess)successBlock error:(ErrorBlock)errorBlock;

#pragma mark 获取显示放弃弹窗类型
//获取显示放弃弹窗类型 0 未支付放弃弹窗 1 选择理由放弃弹窗  2无选择理由弹窗
- (int)show_giveup_window_type;

#pragma mark 放弃考试
/// 放弃考试
/// @param dictValue 放弃理由 默认是其他
/// @param success success
/// @param errorBlock errorBlock
- (void)give_up_test_dictValue:(nullable NSString *)dictValue Success:(ObjSuccess)success error:(ErrorBlock)errorBlock;

#pragma mark 恢复考试
/// 恢复考试
/// @param success success
/// @param errorBlock errorBlock
- (void)restore_test_Success:(ObjSuccess)success error:(ErrorBlock)errorBlock;


@end
#pragma mark 曲目model
@interface DetailsSongModel : NSObject
@property(nonatomic,strong)NSString *  name ;//= "\U6d41\U884c\U6b4c\U66f2:\U7530\U56ed\U66f2";
@property(nonatomic,strong)NSString *  reviewCode ;//= "<null>";
@property(nonatomic,strong)NSString *  reviewStr;// = "<null>";
@property(nonatomic,strong)NSString *  pic; //视频封面
@property(nonatomic,strong)NSString *  url;//视频url
@end


#pragma mark 退款model
@interface  RefundModel : NSObject
@property(nonatomic,strong)NSString * createDate;// = "2020-08-06T05:51:02.000+0000";
@property(nonatomic,strong)NSString * frequency;//  = 1;
@property(nonatomic,strong)NSString * msg ;// = 发起退款申请,退款理由:需要再考虑一下
@property(nonatomic,strong)NSString * orderId;// = 1291250139366961154;
@property(nonatomic,strong)NSString * statusMsg ;// = 退款申请
@end
NS_ASSUME_NONNULL_END
